package org.shiwen.week12;

import java.util.Scanner;

public class String3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个a开头的字符串");

        System.out.println(sc.next().startsWith("a"));

        System.out.println("请输入一个b结尾的字符串");
        System.out.println(sc.next().endsWith("b"));

        int a;
        String b = "10000";
        a = Integer.parseInt(b);
        double c;
        c = Double.parseDouble(b);
    }
}
